The "Sort: Parent" and "Sort: Name" buttons sort the stack accroding to the contents of the "Parent Name" field and the "Self Name" field, repsectively.
The "Sort: Parent" button is especially useful, in that it will get all related cards (those with the same Parent Card) together in the stack.